Fixed warning catch in gtk_window_compute_hints().
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 3 Apr 2011 09:09:22 +0000 (18:09 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 3 Apr 2011 09:10:27 +0000 (18:10 +0900)
gtk/gtkwindow.c

index 16e5fb0d7785a605aee932ccc93590b11c418141..fb957617c7a1569912de1fef1467eb68377ff3a8 100644 (file)
@@ -7168,7 +7168,7 @@ gtk_window_compute_hints (GtkWindow   *window,
       extra_width = requisition.width - TEMPORARY_SIZE;
       extra_height = requisition.height - TEMPORARY_SIZE;
 
-      if (extra_width < 0 || extra_width < 0)
+      if (extra_width < 0 || extra_height < 0)
        {
          g_warning("Toplevel size doesn't seem to directly depend on the "
                    "size of the geometry widget from gtk_window_set_geometry_hints(). "